$(function(){
        $(".swiper-container").swiper({
            loop: true,
            autoplay: 3000
        });
    getNews();


});

function getNews() {
    $.ajax({
        url:requestUrl + "app/article/pageList.do",
        type:"GET",
        data:{articleType:1},
        dataType:"JSON",
        success:function(json){
            if (json.code==0){
                $(json.data).each(function (i,o) {
                    var titlelb = $(" <li><a href='newsinfo.html?name="+o.articleId+"'>"+o.articleName+"</a></li>").appendTo(".news_li");
                })
                $('.swap').html($('.news_li').html());
                x = $('.news_li');
                y = $('.swap');
                h = $('.news_li li').length * 66; //19为每个li的高度
                setTimeout(b,3000);//滚动间隔时间 现在是3秒
            }else{
                alert(json.message)
            }
        }
    })
}